2fa59631662b3aa80ab9ef35adf358bcf1f4a278,ikasaneip/exclusion/src/test/java/org/ikasan/exclusion/service/ExclusionServiceDefaultImplTest.java,ExclusionServiceDefaultImplTest,test_exclusionService_operations,#,133

Before Change


        exclusionService.addBlacklisted("123456", "uri");
        Assert.assertTrue("Should be blacklisted", exclusionService.isBlackListed("123456"));

        exclusionService.addBlacklisted("123456", "uri");
        Assert.assertTrue("Should be blacklisted", exclusionService.isBlackListed("123456"));

        exclusionService.addBlacklisted("123456", "uri");

After Change


        final FlowInvocationContext flowInvocationContext = mockery.mock(FlowInvocationContext.class, "flowInvocationContext");

        Assert.assertFalse("Should not be blacklisted", exclusionService.isBlackListed("123456"));
        exclusionService.addBlacklisted("123456", "uri", flowInvocationContext);
        Assert.assertTrue("Should be blacklisted", exclusionService.isBlackListed("123456"));

        exclusionService.addBlacklisted("123456", "uri", flowInvocationContext);